package com.tzbank.entity.backstage;

import com.tzbank.entity.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

/**
 * 角色表
 * @author XUZONGTIAN
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_role")
@Table(appliesTo = "mb_role", comment = "角色表")
public class Role extends BaseModel implements Serializable {

	private static final long serialVersionUID = -2910385918847897687L;

	/**
	 * 角色名称
	 */
	@ApiModelProperty(value = "角色名称")
	@Column(name = "role_name", columnDefinition = "VARCHAR(50) NOT NULL COMMENT '角色名称'")
	private String roleName;

}
